<template name="user_item">
<tr class="user">
	<td>{{> avatar user=this shape="circle"}}</td>
	<td>
		<a href="{{getProfileUrl}}">{{displayName}}</a>
		<br/>
		<a href="mailto:{{getEmail}}">{{getEmail}}</a>
	</td>
	<td>{{createdAtFormatted}}</td>
	<td>{{postCount}}</td>
	<td>{{commentCount}}</td>
	<td>{{getKarma}}</td>
	<td>
		{{#if invites}}
		<h4>{{_ "invited"}} {{invitedCount}} {{_ "users"}}:</h4>
		<ul>
			{{#each invites}}
				<li><a href="{{getInvitedUserProfileUrl}}">{{invitedName}}</a></li>
			{{/each}}
		</ul>
		{{/if}}
		<p>({{inviteCount}} {{_ "invites_left"}})</p>
	</td>
	<td>{{#if isInvited}}<i class="icon-check"></i>{{/if}}</td>
	<td>{{#if userIsAdmin}}<i class="icon-check"></i>{{/if}}</td>
	<td>
		<ul>
			<li>{{#if isInvited}}<a class="uninvite-link" href="#">{{_ "uninvite"}}</a>{{else}}<a href="#" class="invite-link">{{_ "invite"}}</a>{{/if}}</li>
			<li>{{#if userIsAdmin}}<a class="unadmin-link" href="#">{{_ "unadmin"}}</a>{{else}}<a href="#" class="admin-link">{{_ "make_admin"}}</a>{{/if}}</li>
			<li><a class="delete-link" href="#">{{_ "delete_user"}}</a></li>
		</ul>
	</td>
</tr>
</template>
